{template "header.html", "/"}

<div class="page-container">
    <div class="page-content-wrapper">

        <div class="page-content bg-b">
            <div class="container">



                        <div class="logo">
                            <a href="{MEMBER_URL}">
                                <img src="{$oauth.avatar}" width="100" />
                            </a>
                        </div>
                        <!-- BEGIN LOGIN FORM -->
                        <form class="login-form" id="dform" action="" method="post" style="display:{if $type==1}block{else}none{/if}">
                            <input type="hidden" name="type" value="1">
                            <input type="hidden" name="code" value="{$code}">
                            <h3 class="form-title font-green">登录已有账号</h3>
                            {if $error_1}
                            <div class="alert alert-danger">
                                <button class="close" data-close="alert"></button>
                                <span> {$error_1} </span>
                            </div>
                            {/if}
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">会员账号/手机/邮箱</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="会员账号/手机/邮箱" name="data[username]" /> </div>
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">登录密码</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]" /> </div>
                            <div class="form-actions">
                                <button type="submit" class="btn default uppercase">立即绑定</button>
                            </div>
                            <div class="create-account">
                                    <a href="javascript:;" onClick="$('#cform').show();$('#dform').hide();" class="uppercase">创建新账号</a>
                            </div>
                        </form>
                        <!-- END LOGIN FORM -->
                        <!-- BEGIN FORGOT PASSWORD FORM -->
                        <form class="forget-form" action="" id="cform" method="post" style="display:{if $type==2}block{else}none{/if}">
                            <input type="hidden" name="type" value="2">
                            <input type="hidden" name="code" value="{$code}">
                            <h3 class="form-title font-green">快速注册账号</h3>
                            {if $error_2}
                            <div class="alert alert-danger">
                                <button class="close" data-close="alert"></button>
                                <span> {$error_2} </span>
                            </div>
                            {/if}

                            {if @in_array('username', $regfield)}
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">会员名称</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="会员名称" name="data[username]" />
                            </div>
                            {/if}
                            {if @in_array('phone', $regfield)}
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">手机号码</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="手机号码" name="data[phone]" />
                            </div>
                            {/if}
                            {if @in_array('email', $regfield)}
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">安全邮箱</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="安全邮箱" name="data[email]" />
                            </div>
                            {/if}
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">登录密码</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]" />
                            </div>
                            <div class="form-group">
                                <label class="control-label visible-ie8 visible-ie9">确认密码</label>
                                <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="确认密码" name="data[password2]" />
                            </div>

                            <div class="form-actions">
                                <button type="submit" class="btn default uppercase">立即绑定注册</button>
                            </div>
                            <div class="create-account">
                                    <a href="javascript:;" onClick="$('#dform').show();$('#cform').hide();" class="uppercase">绑定已有账号</a>
                            </div>
                        </form>
                        <!-- END FORGOT PASSWORD FORM -->



            </div>
        </div>

    </div>

</div>


{template "footer.html", "/"}